export interface IApplicationInfo {
  appDesc: string;
  appId: string;
  appKbIds: any[];
  appKbParams: any;
  modelConfig: string;
  appName: string;
  createBy: string;
  hisSessionCount: string;
  modelId: string;
  nonSysPrompt: string;
  openLine: string;
  sysPrompt: string;
  sysRoleCont: string;
  accessToken: string;
  createTime: string;
  updateTime: string;
}

export interface ICreateApplicationParams {
  appDesc: string;
  appName: string;
}

export interface IUpdateApplicationParams {
  appId: string;
  appName: string;
  appDesc: string;
  modelId: string;
  sysRoleCont: string;
  nonSysPrompt: string;
  sysPrompt: string;
  openLine: string;
  hisSessionCount: number;
}

export interface IAccessTokenGet {
  accessToken: string;
  appId: string;
  createTime: string;
  isActive: boolean;
  showSource: boolean;
  updateTime: string;
  appName: string;
}

export interface IChatListByClientId {
  abstractText: string;
  appId: string;
  chatId: string;
  clientId: string;
  createTime: string;
  updateTime: string;
}

export interface IChatMessageAllListByAppId {
  abstractText: string;
  appId: string;
  chatId: string;
  clientId: string;
  createTime: string;
  updateTime: string;
}

export interface IChatMessageGetChatByChat {
  answerText: string;
  answerToken: string | null;
  appId: string;
  chatId: string;
  createTime: string;
  hitInfo: string | null;
  messageId: string;
  problemText: string;
  problemToken: string | null;
}

export interface IApiKey {
  allowCrossDomain: boolean;
  apiKey: string;
  appId: string;
  businessName: string;
  createBy: string;
  createTime: string;
  crossDomainList: any[] | null | string;
  id: string;
  isActive: boolean;
}

export interface IChatLog {
  apiKeyId: string;
  businessName: string;
  chatCount: number;
  lastChatTime: string;
}

export interface IChatLogPage {
  total: number;
  list: IChatLog[];
}

export interface IChatLogPageChannel {
  abstractText: string;
  chatId: string;
  lastChatTime: string;
  questionCount: number;
}

export interface IChatLogPageByChannel {
  total: number;
  list: IChatLogPageChannel[];
}
